import request from '@/utils/request'
import { type Result } from '@/types/result'

// 用户进行关注或取消关注
export function userFollowApi(followUserId:string,isFollow:boolean): Promise<Result> {
  return request.put(`/follows/follow?followUserId=${followUserId}&isFollow=${isFollow}`)
}

// 判断用户是否关注当前用户
export function getPublisherIsFollowedApi(followUserId: string): Promise<Result> {
  return request.get('/follows/follow_or_not', { params: { followUserId } })
}
